package com.resafety.springclound2020.service.imp;

import com.atguigu.springcloud.entities.Payment;
import com.resafety.springclound2020.dao.PaymentDao;
import com.resafety.springclound2020.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymenyServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentdao;
    @Override
    public int create(Payment payment) {
        return paymentdao.create(payment);
    }

    @Override
    public Payment getPaymentByid(Long id) {
        return paymentdao.getPaymentByid(id);
    }
}
